#include"Renderer/VertexArray.h"
#include"Renderer/Renderer.h"
#include"OpenGL/OpenGLVertexArray.h"

namespace ArsEngine
{
	VertexArray* VertexArray::Create()
	{
		switch (Renderer::GetAPI())
		{
		case RendererAPI::API::None:   return nullptr;
		case RendererAPI::API::OpenGL: return new OpenGLVertexArray();
		}
		return nullptr;
	}
		 
}
